<!doctype html>
<html lang="en" class="classic" style="--inner-height:100vh;">
<head>
    <meta charset="UTF-8"/>
    <link rel="icon" type="image/svg+xml" href="/svg/earth.svg"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <style>
        :root {
            --inner-height: 100vh;
        }

        @supports (-webkit-touch-callout: none) {
            :root {
                --inner-height: -webkit-fill-available;
            }
        }
    </style>
    <script>
        (function () {
            /**
             * 去掉一些莫名其妙的警告
             */
            if (typeof EventTarget !== "undefined") {
                let func = EventTarget.prototype.addEventListener;
                EventTarget.prototype.addEventListener = function (type, fn, capture) {
                    this.func = func;
                    if (typeof capture !== "boolean") {
                        capture = capture || {};
                        capture.passive = false;
                    }
                    this.func(type, fn, capture);
                };
            }
        }())
    </script>
    <title>zms-admin</title>
</head>
<body>
<div id="app" app-main>
    <style>
        #loading-mask {
            position: fixed;
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            background: #fff;
            user-select: none;
            z-index: 9999;
            overflow: hidden
        }

        .loading-wrapper {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -100%)
        }

        .loading-dot {
            animation: antRotate 1.2s infinite linear;
            transform: rotate(45deg);
            position: relative;
            display: inline-block;
            font-size: 128px;
            width: 128px;
            height: 128px;
            box-sizing: border-box
        }

        .loading-dot i {
            width: 54px;
            height: 54px;
            position: absolute;
            display: block;
            background-color: #1890ff;
            border-radius: 100%;
            transform: scale(.75);
            transform-origin: 50% 50%;
            opacity: .3;
            animation: antSpinMove 1s infinite linear alternate
        }

        .loading-dot i:nth-child(1) {
            top: 0;
            left: 0
        }

        .loading-dot i:nth-child(2) {
            top: 0;
            right: 0;
            -webkit-animation-delay: .4s;
            animation-delay: .4s
        }

        .loading-dot i:nth-child(3) {
            right: 0;
            bottom: 0;
            -webkit-animation-delay: .8s;
            animation-delay: .8s
        }

        .loading-dot i:nth-child(4) {
            bottom: 0;
            left: 0;
            -webkit-animation-delay: 1.2s;
            animation-delay: 1.2s
        }

        @keyframes antRotate {
            to {
                -webkit-transform: rotate(405deg);
                transform: rotate(405deg)
            }
        }

        @-webkit-keyframes antRotate {
            to {
                -webkit-transform: rotate(405deg);
                transform: rotate(405deg)
            }
        }

        @keyframes antSpinMove {
            to {
                opacity: 1
            }
        }

        @-webkit-keyframes antSpinMove {
            to {
                opacity: 1
            }
        }
    </style>
    <div id="loading-mask">
        <div class="loading-wrapper">
            <span class="loading-dot loading-dot-spin"><i></i><i></i><i></i><i></i></span>
        </div>
    </div>
</div>
</body>
<script type="module" src="/src/apps/admin/main.ts"></script>
<script lang="ts" type="module">
    import {checkSystemUpdate} from "./common.ts";

    checkSystemUpdate(300000)
</script>
</html>
